﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="advertisement_setting.aspx.cs"
    Inherits="TRPOP.CMS.Web.Admin.advertisement_setting" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>广告全局设置-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return CheckForm(this);">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：广告全局设置 ->
                <%=m_Title%>
            </td>
        </tr>
    </table>
    <table class="table_form">
        <tbody>
            <tr class="tr_item">
                <th>
                    开启广告功能
                </th>
                <td>
                    <cms:RadioButtonList ID="rbtAdvertisementEnable" runat="server" Enabled="false" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="true" Value="true">是</asp:ListItem>
                        <asp:ListItem Value="false">否</asp:ListItem>
                    </cms:RadioButtonList>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    更新时删除过期广告生成文件
                </th>
                <td>
                    <cms:RadioButtonList ID="rbtAdvertisementDel" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                        <asp:ListItem Value="1">是</asp:ListItem>
                    </cms:RadioButtonList>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                    默认模式
                </th>
                <td>
                    <cms:RadioButtonList ID="rbtAdvertisementTypeDefault" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">静态</asp:ListItem>
                        <asp:ListItem Value="1">动态</asp:ListItem>
                    </cms:RadioButtonList>
                </td>
            </tr>
            <tr class="tr_item">
                <th width="20%">
                    动态访问地址
                </th>
                <td>
                    <cms:TextBox ID="txtAdvertisementDynamicAccessUrl" runat="server" required="1" prompt="动态访问地址"
                        valuelength="300" ControlValueType="String"></cms:TextBox>
                    <span class="FontWarn">*</span><span class="sp_tiptitle">不能超过300个字符！</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th width="20%">
                    静态生成目录
                </th>
                <td>
                    <cms:TextBox ID="txtAdvertisementRoot" runat="server" required="1" prompt="静态生成目录"
                        valuelength="300" ControlValueType="String"></cms:TextBox>
                    <span class="FontWarn">*</span><span class="sp_tiptitle">不能超过300个字符！</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th width="20%">
                    广告资源发布点
                </th>
                <td>
                    <cms:TextBox ID="txtAdvertisementUpLoadRootPSN" runat="server" required="1" prompt="广告资源发布点"
                        valuelength="300" ControlValueType="String"></cms:TextBox>
                    <a href="javascript:show_dialog('../AdminSelect.aspx?roottype=psn&extname=&setid=txtAdvertisementUpLoadRoot&selpath=',450,230,'广告资源发布点');">
                        选择目录</a> <span class="FontWarn">*</span><span class="sp_tiptitle">不能超过300个字符！</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th width="20%">
                    广告资源发布URL
                </th>
                <td>
                    <cms:TextBox ID="txtAdvertisementUpLoadRootUrl" runat="server" required="1" prompt="广告资源发布URL"
                        valuelength="300" ControlValueType="String"></cms:TextBox>
                    <span class="FontWarn">*</span><span class="sp_tiptitle">不能超过300个字符！</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th width="20%">
                    广告跳转地址
                </th>
                <td>
                    <cms:TextBox ID="txtAdvertisementSkipURL" runat="server" required="1" prompt="广告文件上传目录"
                        valuelength="300" ControlValueType="String"></cms:TextBox>
                    [$AdvertisementSkip] <span class="FontWarn">*</span><span class="sp_tiptitle">不能超过300个字符！</span>
                </td>
            </tr>
            <tr class="tr_item">
                <th>
                </th>
                <td>
                    <cms:Button CssClass="button_style" ID="btnSubmit" Text="确定" runat="server" OnClick="btnSubmit_Click" />
                    <input class="button_style" name="reset" onclick="$('#Form').resetForm();" value="清除"
                        type="reset">
                    <input class="button_style" name="reset" onclick="window.location.href='<%=m_strRefer%>'"
                        value="返回" type="reset">
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
